package com.cnswhy.cloud.server.core.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.cnswhy.cloud.common.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.cnswhy.cloud.common.core.base.entity.SuperEntity;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author cnswhy
 * @since 2021-03-03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "AlipayUserInfoUpdateDTO", description = "")
public class AlipayUserInfoUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "id不能为空", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 用户支付宝 ID
     */
    @ApiModelProperty(value = "用户支付宝 ID")
    @Length(max = 20, message = "用户支付宝 ID长度不能超过20")
    private String userId;
    /**
     * 访问令牌
     */
    @ApiModelProperty(value = "访问令牌")
    @Length(max = 255, message = "访问令牌长度不能超过255")
    private String accessToken;
    /**
     * 访问令牌的有效时间
     */
    @ApiModelProperty(value = "访问令牌的有效时间")
    @Length(max = 255, message = "访问令牌的有效时间长度不能超过255")
    private String expiresIn;
    /**
     * 刷新令牌
     */
    @ApiModelProperty(value = "刷新令牌")
    @Length(max = 255, message = "刷新令牌长度不能超过255")
    private String refreshToken;
    /**
     * 刷新令牌的有效时间
     */
    @ApiModelProperty(value = "刷新令牌的有效时间")
    @Length(max = 255, message = "刷新令牌的有效时间长度不能超过255")
    private String reExpiresIn;
    /**
     * 用户头像地址
     */
    @ApiModelProperty(value = "用户头像地址")
    @Length(max = 255, message = "用户头像地址长度不能超过255")
    private String avatar;
    /**
     * 省份名称
     */
    @ApiModelProperty(value = "省份名称")
    @Length(max = 255, message = "省份名称长度不能超过255")
    private String province;
    /**
     * 市名称
     */
    @ApiModelProperty(value = "市名称")
    @Length(max = 255, message = "市名称长度不能超过255")
    private String city;
    /**
     * 用户昵称
     */
    @ApiModelProperty(value = "用户昵称")
    @Length(max = 255, message = "用户昵称长度不能超过255")
    private String nickName;
    /**
     * 性别
     */
    @ApiModelProperty(value = "性别")
    @Length(max = 255, message = "性别长度不能超过255")
    private String gender;
}
